Showing posts with label command. Show all posts
Showing posts with label command. Show all posts

Friday, January 23, 2026

Ansible - Command vs Shell

 If you need a shell environment, use the shell module. 


Command:

ansible <host in inventory> -m ansible.builtin.shell -a '<shell command>'


Example

-ansible webservers -m ansible.builtin.shell -a 'mkdir MyTestFolder'

Monday, October 13, 2014

Command Line Tricks for HP Procurve Switchs

Below some helpful commands.

  • Display logs or debug on current session:
    • terminal monitor (Cisco)
    • debug destination session (HP Procurve)
  • By default HP Procurve switch don't display packets drops by queue. You can enable the monitoring only on 1 interface with the command below:
    • qos watch-queue xx out (where XX is the interface you want to monitor)
  • Obtain 'show tech':
    • copy command-output "show tech all" sftp user ftpuser 10.10.10.10 show-tech.txt
  • Filter a 'show runnning' command:
    • Like Cisco, it's possible to use '|' after the 'show running'
Switch# show running-config | include router
ip router-id 1.1.1.1
router ospf
router vrrp

Switch# show running-config | begin router
ip router-id 1.1.3.1