Forum Discussion

itakacs_39095's avatar
itakacs_39095
Icon for Nimbostratus rankNimbostratus
Feb 26, 2013

tmsh commands causing OutOfSync status

Guys,

 

 

We run some scripts overnight to collect configuration backups from the devices and some of the commands are causing the active host to report "Changes Pending" and send SNMP trap to the monitoring station.

 

I'm guessing the following 2 commands have this effect, but could not find any information to confirm it;

 

 

(Active)(/Common)(tmos) modify cli preference pager disabled

 

(Active)(/Common)(tmos) modify cli preference display-threshold 0

 

 

 

display-threshold Specifies the maximum number of objects that tmsh will display without requiring a user response to the question, "Display all items? (y/n)". You can specify from 0 (zero) through 4,294,967,265

 

objects. 0 (zero) specifies that tmsh will display any number of objects without the warning.

 

pager Specifies whether or not long displays will be sent to less.

 

 

Is there any way to exclude these commands from the ones triggers config synch request? We don't want to enable automatic config sync because that would beat the reason of HA I imagine, but than we're getting alerts every time when the config backup runs.

 

 

Thank you.

 

Istvan

 

1 Reply

  • i have not seen a way to exclude cli preference part from being triggered configsync.

    anyway, why do you need to disable pager? would it be possible to run tmsh -q from bash instead?

    [root@ve11a:Active:In Sync] config  tmsh -h
    usage: tmsh  
      An option may be specified once. A command may follow the options, in
      which case the shell exits after executing the command.
      -a do not update the command history file
      -c run a command, a command with multiple arguments must be in quotes,
         this must be the last option specified
      -d  connect to mcp at the specified location
      -e disable video effects (bold, color, ...)
      -f allow saving configuraiton on secondary slot in cluster environment
      -g don't check mcpd phase when saving configuration
      -h show this list
      -l run as a login shell, job control is disabled, not valid with a command
      -m all messages sent to and received from mcpd to tmsh.out
      -n don't read the tmshrc file, commands that update the rc file cannot be used
      -q the shell will not ask the user any questions, this option does not
         have an affect in interactive mode
      -s print debug information for statistics commands to tmsh.out