Echo commands on Nexus OS

Hi, 
When I enter any commands on my N5k's, I see echos of the full command, date/time stamp, and OS version:
# sho run
!Command: show running-config
!Time: Wed Nov 26 15:42:04 2014
version 6.0(2)N2(2)
<then running config is shown>
Why is this?  It doesn't happen on my N7K's...
NX-OS version 6.0(2)N2(2)

found a guide that explaned it perfect:
https://supportforums.cisco.com/blog/149331/nexus-7000-acl-logging-oal

Similar Messages

  • Using Echo Command in PowerShell Script for Configuration Item

    Hello All,
    Before you tell me to post my PowerShell question to the PowerShell Forum, please know that the PowerShell portion of my task works just fine. It is the SCCM portion of my task that keeps failing, so that is why I am here. To give some background...
    There are two servers in our SCCM test environment. Both the SCCM server and SQL DB server are 2012, patched and updated.
    Test servers in my Device Collection being used for running Baselines and Reports against are 2008R2 and 2012, patched and updated.
    I have created a Configuration Item that checks to see if the FTP Server Role Feature has been installed on a 2008 or 2012 server. To do the check, I am using the following PowerShell script:
    (get-windowsfeature -Name Web-Ftp-Server).Installed
    When I log into my 2008R2 and 2012 test servers, and run this command directly on the server, it will return a "True" if the FTP Server Role Feature is installed on either server, and a "False" if it is not installed. Basically,
    it works as advertised.
    When I setup my Configuration Item and then deploy my Baseline, or run a report against my device collection of test servers, SCCM will return a correct response (True or False) for the 2012 test server, but throws the following error for the 2008R2
    server:
    0x87df00329 application requirement evaluation or detection failed
    Google searches for this have not been very helpful.
    Now, when I created the Configuration Item and referenced PowerShell, the configuration screen has the following note:
    "Specify the script to find and return the value to be assessed for compliance on client devices. Use the echo command to return the script value to Configuration Manager."
    Since I did not include an echo command in my PowerShell script above, I figured that was my problem, so I did the following:
    Logging onto both of my test servers (2008R2 & 2012) I was able to successfully run the following PowerShell commands and get the expected responses of True or False:
    (get-windowsfeature -Name Web-Ftp-Server).Installed | echo
    (get-windowsfeature -Name Web-Ftp-Server).Installed | write-output (http://technet.microsoft.com/en-us/library/hh849921.aspx)
    (get-windowsfeature -Name Web-Ftp-Server).Installed | write-host (http://technet.microsoft.com/en-us/library/ee177031.aspx)
    However, when I use any of these PowerShell commands in my Configuration Item, NEITHER of my test servers returns a response to the SCCM server.
    When I check the report, both servers show as "Unknown" and when I click on the number 2 (as in 2 servers unknown), the following report page (List of unknown assets for a configuration baseline) has absolutely no data/information at all.
    So...I am at a loss.
    SCCM tells me to use an echo command to return a script value to Configuration Manager. The PowerShell scripts above, with the various echo related commands, work just fine on the servers themselves, but they return no information when run via SCCM.
    What am I missing?
    Any help will be appreciated.
    Thanks in advance for your time.

    Sorry for my ignorance, but I don't understand. (I forgot to mention that I am new at both PowerShell and SCCM.)
    After I change the PowerShell script to add the echo/write-output/write-host cmdlet, I open the ConFig Item and "Clear" the PowerShell script and then re-add it. When I do that, it correctly shows the change in the ConFig Item.
    Next I open the Baseline, then open the ConFig Item within the Baseline to make sure the change is reflected there as well, which it is.
    I then deploy the Baseline to my Device Collection. After that, I run a report against the Baseline and Device Collection and it returns the "Unknown" result.
    If I open the PowerShell script and remove the echo/write-output/write-host cmdlet, then go through the rest of the process of updating and reporting, the result it returns changes, showing one server in compliance and the other server out of compliance,
    which leads me to think that all changes have taken correctly.
    Does that sound right? If I manually deploy the Baseline, is that the same as the client retrieving policies from the management point?
    Sorry to be so thick but I'm learning as I go.
    Thanks again for your help.

  • How to put echo command and other command in same line in Terminal

    Hello everyone. I use GeekTool (v3.0.1) and was wondering if I could put an "echo" command and another command in a shell script such that the output would be 1 line only instead of 2 lines for the 2 commands. How do I do that?

    This is why I think iTunes, in its present form, is completely unsuited for cataloging eBooks. However you can do what you want to do with the existing tags. Since a picture is worth a thousand words, here's a screen cap for you to illustrate how:
    And the various other sorting options:
    Give all that a try and see how it works for you.

  • How to execute echo command thro' program.

    I want to execute the echo command of windows through a java program.
    Which is the method that I can use.
    Please help.

    I conjecture it is a built-in command in Windows too.
    If you try ro tun it with Start -> Run -> echo , it won't.

  • Echo command(or similar) in RMAN Prompt

    Hi Friends,
    How do i use echo command (or similar) in RMAN . I have a batch file for daily RMAN backup and i have 2(or) 3 set of RMAN commands inside the batch file and the batch file output is stored in a log file
    I would like to give some comments before execution of the RMAN commands so that my RMAN log will look better.
    Regards,
    DB

    How do i use echo command (or similar) in RMAN . I have a batch file for daily RMAN backup and i have 2(or) 3 set of RMAN commands inside the batch file and the batch file output is stored in a log fileYou can use 'echo' with 'host' command:
    host "echo Starting backup";

  • No export command in Nexus 1010

    Hi all,
    We want to do a backup of a virtual-service-blade in a Nexus 1010. The document we are following is:
    http://www.cisco.com/en/US/docs/switches/datacenter/nexus1000/sw/4_2_1_s_p_1_3/software/configuration/guide/n1010_vsvcs_cfg_7backup.html
    What we are supposed to do fron this document is to create a file named export-import, to shutdown the primary o secondary virtual service blades, and after it, to execute the command "export primary" o "export secondary", depending on which vsb we want to export.
    ========= DETAILED STEP IN THE DOCUMENT ================
    n1010-1(config-vsb-config)# export  secondary
    Note: export started..
    Note: please be patient..
    Note: please be patient..
    Note: please be patient..
    Note: export  completed...n1010-1(config-vsb-config)#
    ====================================================
    The problem is that this "export" command is not available in our nexus 1010.
    =========== NEXUS 1010 ===============================
    N1010-MGMT(config-vsb-config)# export secondary
                                     ^
    % Invalid command at '^' marker.
    N1010-MGMT(config-vsb-config)#
    N1010-MGMT(config-vsb-config)#
    N1010-MGMT(config-vsb-config)# ?
      description                 Virtual service blade description
      disksize                    Configure disk size
      enable                      Deploy/remove the virtual service blade
      interface                   Configure virtual service blade interface vlan
      no                          Negate a command or set its defaults
      numcpu                      Configure numcpu
      ramsize                     Configure ram size
      shutdown                    Start/stop the virtual service blade
      virtual-service-blade-type  Select the virtual service blade type
      end                         Go to exec mode
      exit                        Exit from command interpreter
      pop                         Pop mode from stack or restore from name
      push                        Push current mode to stack or save it under name
      where                       Shows the cli context you are in
    =====================================================
    The version of the nexus is the same than the document's one.
    Document: 4.2(1)SP1(3) ==> Nexus 1010: version 4.2(1)SP1(2)
    Software
      loader:    version unavailable [last: loader version not available]
      kickstart: version 4.2(1)SP1(2)
      system:    version 4.2(1)SP1(2)
      kickstart image file is: bootflash:/nexus-1010-kickstart-mz.4.2.1.SP1.2.bin
      kickstart compile time:  1/27/2011 14:00:00 [01/28/2011 01:14:35]
      system image file is:    bootflash:/nexus-1010-mz.4.2.1.SP1.2.bin
      system compile time:     1/27/2011 14:00:00 [01/28/2011 04:13:25]
    Hardware
      cisco Nexus 1010 Chassis ("Cisco Nexus1010 Chassis")
       with 14665728 kB of memory.
      Processor Board ID T023D700201
    We don't know which can be the problem, wheter it can be a bug in the software, or we are doing something wrong.
    Thank you

    The export command was a new feature added in the 4.2(1)SP1(3) version of code. Your 1010 is one rev lower.
    You'll need to upgrade the code on the 1010 to the latest code to get the export command.
    The upgrade is pretty straight forward. Just download the code and follow the upgrade guide.
    louis

  • Sh ip cache flow command in Nexus

    is there a similar command to the  sh ip cache flow in Nexus?
    Thanks..
    _Greg...

    Hi Greg
    Try
    sh hardware flow ip
    Below you can find the documentation about netflow on nexus:
    http://www.cisco.com/en/US/docs/switches/datacenter/sw/5_x/nx-os/system_management/configuration/guide/sm_15netflow.html
    HTH,
    Alex

  • Run 'echo' command at boot.

    Hey!
    I am trying to run the following command at boot:
    "echo 10 > /sys/class/backlight/acpi_video0/brightness"
    So far I've tried in /etc/rc.local. That didn't work
    Any thoughts?

    I can think of a primitive way to do it, but there's probably a better (and simpler) way than this...
    Edit ~/.xinitrc and add your command above the "exec ..." line:
    $ nano ~/.xinitrc
    echo 10 > /sys/class/backlight/acpi_video0/brightness &
    exec ck-launch-session gnome-session
    The "&" at the end should be probably added in, for good measure. Backgrounding this task is (probably) a good idea, else your GNOME session (or whatever DE/WM you use) may not start.
    Then edit your sudoers file, so that it doesn't ask for a password:
    $ sudo EDITOR=nano visudo
    Defaults editor=/usr/bin/nano
    root ALL=(ALL) ALL
    dspider ALL=(ALL) ALL
    dspider ALL=NOPASSWD: /bin/mount, /bin/umount
    dspider arch=NOPASSWD: /sbin/reboot, /sbin/poweroff, /usr/bin/pacman -Syu, /bin/echo 10 > /sys/class/backlight/acpi_video0/brightness
    The easier way is to use the "-b" flag from gtk-redshift (inspired by f.lux):
    # pacman -S redshift
    $ gtk-redshift -l 44.42:26.10 -b 0.5 -g 0.8 -t 6500:3800 -m vidmode &
    Last edited by DSpider (2012-09-26 07:16:29)

  • Command Line Arguments Return/Echo

    I am calling a standalone LabVIEW 7.0 based application from the command line passing in user arguments.  This works fine.  However, I would like to output status/strings back to the same command line window that the application was run from.  The best I could do was calling a batch file containing 'Echo' commands from 'System Exec' inside the app but this outputs the data in a new command line window, not the same as the one used to run the app.  Anyone know how to do this?
    This post is the same issue but there was no resolution:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=200786&requireLogin=False
    Thanks,
    Steffan 

    This article Knowledge Base 2C7F28O9: Error 2 (Memory Full) When Using the System Exec VI is the closest I know of that may do what you are looking for. If this or any of its related links do not help than I do not believe that it is possible.
    Vince M
    Applications Engineer

  • Command to see transmit qeueing drops in Nexus 5548

    Hello, 10g links in our core are getting rather congested as seen by MRTG graphs. Any command on Nexus 5548 to show transmit queuing drops on a given interface?

    You could use #show queing interface eth 1/1
    it shows you output similar as below:
    NEXUS-1# show queuing interface ethernet 1/1
    Ethernet1/1 queuing information:
      TX Queuing
        qos-group  sched-type  oper-bandwidth
            0       WRR            100
      RX Queuing
        qos-group 0
        q-size: 470080, HW MTU: 9216 (9216 configured)
        drop-type: drop, xon: 0, xoff: 470080
        Statistics:
            Pkts received over the port             : 222434
            Ucast pkts sent to the cross-bar        : 199674
            Mcast pkts sent to the cross-bar        : 22760
            Ucast pkts received from the cross-bar  : 101087
            Pkts sent to the port                   : 145083
            Pkts discarded on ingress               : 0
            Per-priority-pause status               : Rx (Active), Tx (Inactive)
      Total Multicast crossbar statistics:
        Mcast pkts received from the cross-bar      : 43996

  • Nexus - enable remote logging of entered commands

    Hi all!
    Is there same way to enable remote logging of entered commands on Nexus platform? I found only how to do it with aaa and tacacs+, but we do not have such? In classic IOS it was quite easy to do.
    Thanks.

    Hi Igor
    Nexus has internal accounting log: sh accouting log
    But it can be sent only to the accounting server, not to a syslog server.
    If you want - you man manually export it to some log.
    HTH,
    Alex

  • Action with Move command fails after illustrator restarts

    Make new illustrator file
    Make a Rectangle
    Make a new action
    While recording action press enter, and move any direction
    Stop recording
    Run action again to test
    Close Illustrator
    Open Illustrator
    Try and use action
    Fails and gives error "The object 'Move' is not currently available, the action button turns orange.
    It also fails in button mode
    It fails if I try to reload the actions
    It only works if I recreate them in that session illustrator is open.
    Expected Behavior
    Actions work no matter how many times you restart illustrator

    Sorry about not being very clear originally. We don't actually send remote notices to the target machines via ARD. The command
    osascript -e 'tell application "System Events" to display dialog "Message"'
    is just an example of what ARD is having issues with for me: If the script for the target machine pushes any user-facing GUI at all, it will not quit until someone manually OKs or closes the window... no amount of messing with the command by giving it ampersands or starting subshells prevents ARD from minding every single one of the subprocesses that it has started.
    There are posts here where we see that a certain task never even "ends" in ARD's eyes: the scripted reboot
    A colleague has suggested that we update our application to echo command information instead of triggering an "Everything was OK" dialog. Most of the time this will fail because you do not have access to the source code in the real world. In my case, we do, but making the changes requires reviewing, changing the code and new testing for the triggered application.
    Still, there is a flaw in not having an option for ARD to just hit-and-run with a script to, say, open a presentation in 100 computers and leave it running. Currently, ARD will hit a few and hang on "Running" as soon as its whatever maximum parallel workstations is stuck running this script.
    ARD designers seem to have planned it "we must receive the return value of this open-ended script," while clients see it as "please let us treat the job as finished as soon as the last line has been triggered"

  • SPOOLing in sql developer does not take into consideration SET ECHO OFF

    I'm running SQL Developer 3.1.07.42 on Windows 7 64 bit with java 1.7
    I have the following very simple script just to show the problem:
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    SPOOL c:\test.sql
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    /if I run it in TOAD 10.6.0.42 it creates the file with
             1          2          3This is as expected (by me)
    if I run the exact same query in SQL Developer 3.1.07.42 , it creates the file with:
    < SELECT 1, 2, 3 FROM DUAL
    1 2 3(the < above is actually ">" but the CODE formatting software is screwing ">")
    but I don't want the ECHOed command to be spooled. For the life of me, I cannot find a way to disable the ECHO from spooling in sql developer.
    Tried the same in 3.0.4 and 2.1.1 with the same (bad) result (plus some warning on some of the unsupported SET commands).
    Am I missing something obvious? Cause like this, the spool command cannot be used in sql developer to generate a CSV file for example, because of the echoed command. And windows doesn't come with SED by default so that is out. (plus that my original script is integrated into a much larger and complex set of scripts and the main script using them is executed from SQL Developer as a company policy (so that everybody uses the same tool and the code runs the same for everybody))
    Any ideas/suggestions are welcome
    Thanks.

    Hi Gary, you seem to have some extensive knowledge. I'd like to follow-up on this thread and try to understand why SQL Developer won't hide the code even though I'm already running the code as a Worksheet (I assume you mean Run Script F5 button in SQL Developer).
    I generally develop in SQL Developer that does a lot of dbms_output to echo data using a Spool command. When I'm in SQL Developer I can't get the code NOT to spool, it typically is echoed directly in the spool file at the top followed by the dbms_output data. If I save the sql file and run in in sqlplus it only outputs the data (good). If I use @C:\xyz_script.sql and hit F5 in SQL Developer it only outputs the data (per your previous answer) -- good.
    So why can't I hit F5 in SQL Developer in the script file and have it only output the data? It just doesn't work no matter how many "SETs" you turn-off.
    Looks like Echo, Term, Feed are supported in SQL Developer, maybe supported means something other than work.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/sql-worksheet-commands-097146.html

  • Execution of remote script in File Adapter OS Command

    Hello.
    I'm having issues with a remote script placed on a file adapter which fails to execute in a clustered PI (Version 7.1), running on Windows 2008.
    Our current setup is as follows.
    - Machine A and Machine B make up a SAP PI Cluster node.
    - Machine C is our network file share, used as a sandbox for receiving and sending files.
    One given scenario would be having the Cluster picking up a file from a FTP folder (Machine D) and copying it over to a given location in Machine C. This is working without problems in the cluster environment.
    Now, a very specific scenario requires that after copying the file (to folder INPUT), a given script shall be executed over the received file and decide which folder should that file be archived, TO_PROCESS or NO_PROCESS folders.
    So, Outbound Channel is reading from the FTP, Inbound Channel stores in Machine C and has to run a script after message processing.
    The problem here is that the script is stored also in Machine C, so placing the OS Command should refer to a shared path:
    Example:
    sap-machine-c.gca.ad.root\InboundFiles\INPUT
    sap-machine-c.gca.ad.root\InboundFiles\TO_PROCESS
    sap-machine-c.gca.ad.root\InboundFiles\NO_PROCESS
    sap-machine-c.gca.ad.root\Scripts\procFile.bat
    If I give the command of "
    sap-machine-c.gca.ad.root\Scripts\procFile.bat %F" on the receiver channel, checking RWB, Communication channel says the command was executed with success but the file doesn't leave the INPUT folder.
    The script is know to execute with success from both instances, I have logged into each one of them and executed with RFCUSER in SE38 w/transaction RSBDCOS0.
    I have tried to replicate this issue, reducing even the procFile.bat script to just do an "echo" command but still doesn't work (RWB PI says it does).
    It seems to me that executing scripts from remote shares is a no go? Does anyone have a previous experience dealing with these cases?
    Thanks,
    Romeu

    Hi all.
    After taking some hints from this thread, we have found out that the problem lied some where in the installation part of PI.
    We've set up a basic script, local and not remote, and still the system would not execute that command.
    The RWB logs showed successful processing but the Application Server logs were full of errors and stack traces regarding the execution of any command. A support note was raised with SAP support in order to trace these errors.
    I'm therefore closing this question as the original question is not related with remote scripting.
    Thanks all for your help.
    Best regards,
    Romeu

  • Looking for a command

    i'm making a pkgbuild for my favorite emulator..
    but i've run into a problem
    is there anyway to change a varible in a config file
    i know of the echo command...
    sorry this question is so vague i just need to be able to type a command that change something inside a config file

    Usually, I use sed (pacman -S sed)
    SCRIPT=$(echo "s=variable=newvariable=")
    sed -e "$SCRIPT" < file > file.tmp
    mv file.tmp file
    to subtitute a string with '=', use '='
    There is also awk which you could use.
    There migth be some better way

Maybe you are looking for

  • Trigger Button Click

    I need a way to programmatically click one of the interface buttons, if at all possible. I've tried calling the method directly linked to the button, but for some reason it doesn't work. I've tested several different scenarios, but it never works as

  • Loading Variables from ASP into Flash

    I can find plenty of tutorials detailing how to load variables from a defined asp page into Flash, but here's my dilemma... I have an asp page that is reading a URL with a unique identifier in it (www.sampleURL.com?id=123456), and then turns the id n

  • Invoice Verification of Sceduling Agreement

    Hi , I am having a scenario where the vendor send me the invoice electronically for the scedulling agreement and so for the GR is not done for the same. In this case since we have GR based IV so at the time of IV it says no line item to process. But

  • AbstractAction setting disabledIcon

    Friends, I have an AbstractAction in a toolbar and I want to disable it until something happens. I've done this correctly, but by default it grayFilter's the Icon until it is enabled. I attempted setDisabledIcon(icon); but AbstractAction doesn't supp

  • Please connect fingerprin​t sensor error, what to do??

    I have a new T61U6457 and I'm getting this error message. I had this happen a week ago but then it spontaneously stopped, only to return now. I've checked the cable and it is securely plugged to the connector. What is casuing this error and what shou