Forum Discussion

jaikumar_f5_226's avatar
jaikumar_f5_226
Icon for Nimbostratus rankNimbostratus
Mar 02, 2018

How to save the watch-devicegroup-device output

Hi Folks,

Just trying to find a way to save the tmsh output of

tmsh run cm watch-devicegroup-device

As you know, this will give out the commit ID. I tried the below, but it doesn't save anything.

tmsh run cm watch-devicegroup-device > output.txt

Any guidance is highly appreciated.

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus
    1. Run
      tmsh run cm watch-devicegroup-device
      ;
    2. Press
      ;
    3. Enter a file name at the prompt;
    4. The output text file will be located in /shard/tmp/file_name_you_entered.

    In addition, while the command is running, you can get help as below:

    Press h to see a list of available commands.
    Press the back tick key (‘) to exit the help page.
    

    .

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Then run the following command instead (not using tmsh):

     /usr/local/bin/watch_devicegroup_device -D

    .

    Similarly, you can do the following as well:

     /usr/local/bin/watch_traffic_group_device -D
     /usr/local/bin/watch_devicegroup_device -D
     /usr/local/bin/watch_sys_device -D
     /usr/local/bin/watch_trust_domain -D
    

    .