- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Central Script to run command on multiple gateways
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Central Script to run command on multiple gateways
Hi Everyone
This script can be very useful for enterprise customer where administrator has to perform some common gateway changes on multiple gateways . Like configuring NTP , syslog ,SNMP ,This can also be used to copy a file on multiple gateway in one go . or might be admin needs to know out of 1000 gateways which all gateway is running on which version .
*********below is the script *************
[Expert@Management:0]# cat rcommand.sh
#!/bin/bash
echo "Do you want to run bash or clish command"
read shell
echo "please input the $shell command to run on all the gateway"
read input
for dest in $(<gateway_ip_list.txt); do
echo "running the $shell command $input on $dest "
cprid_util -server $dest -verbose rexec -rcmd /bin/$shell -c "$input"
done
[Expert@Management:0]#
*************************************************************
For step by step procedure refer the attached document .
Watch a demo here
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
This is a modal window. This modal can be closed by pressing the Escape key or activating the close button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please refer to the following SK article:
sk101047 - How to manage Security Gateway using the "cprid_util" tool
