Command Line interface (CLI)

learn more… | top users | synonyms (2)

0
votes
0answers
9 views

IBM AMM BladeCenter 39Y9661 problems

i'm working on a bladecenter S and i try to update my amm with putty via COM port, but when i want to see my version it doesn't work i use like every time this command: env -T system:mm[1] info ...
-4
votes
1answer
32 views

“ifconfig” command not found and networking tools package information needed

I have 2 questions : 1) "ifconfig" command is not found in centos 7, i tried to find in /sbin, there also command is not available. Doesn't this essential tool not included in minimal installation ( ...
-4
votes
0answers
20 views

how do i set index priorty on nginx in order to load index.html before wordpress' .php files [closed]

hello there, gents. I'm an absolute beginner in linux, the CLI, as well as nginx and wordpress. i'm trying to make a 'coming soon' landing page that will take priority over the main wordpress ...
0
votes
0answers
5 views

AWS EB Change db name via DBInstanceIdentifier

I'm using ElasticBeanstalk for many apps and many environments (not that many but just making a point here). I'd like to have my databases (RDS instances) have human-readable names. When I change a ...
-5
votes
0answers
13 views

Executing CLI commands in switch using java libraries [closed]

Is that possible execute CLI commands in the switch using java libraries ?
3
votes
1answer
88 views

Troubleshooting DNS issue

I am trying to troubleshoot a DNS issue I am currently having with a new project host on an AWS EC2 instance. It is a brand new domain, and I have already updated the nameservers on the registrar ...
1
vote
2answers
27 views

Kill all currently running cron jobs

For some reason my cron job scripts aren't exiting cleanly and they're backing up my server. There are currently a couple hundred processes running for one of my users. I can use the following command ...
2
votes
3answers
165 views

How can I deploy template-based VM from Linux?

We are trying to provide our Linux engineers with a CLI to deploy VMWare vSphere VMs using templates. The vSphere CLI looks promising but the documentation doesn't mention templates. Does anyone ...
0
votes
2answers
34 views

How to check the connection to remote server with a digital certificate (client authentication)

I got a digital certificate with extensions for server and client authentication and a private key. Now I want to connect to a remote server (REST web services) which should accept my requests ...
-1
votes
1answer
27 views

tail -n equivalent for X last chars of a file?

I'm searching a way to display X last chars of afile. I've a big log file with everything on 1 line... I'm just interested for the last chars of this log. I didn't found anything to solve my ...
0
votes
0answers
19 views

Checkpoint Firewall - R75.3 - how to view time of recent CLI change

I'm trying to figure out when a colleague processed a change in the last couple of days. Very in experienced in expert or router modes. Any tips? Regards!
0
votes
0answers
11 views

How do I change the deploy directory when using Elastic Beanstalks CLI tool?

When I deploy using the EB CLI tool, with: git aws.push It deploys to /var/app/current How do I change that to deploy to /var/www/html ? Thanks
0
votes
0answers
14 views

Disabling ssid broadcast programatically/CLI and keeping exsisting devices connected DD-wrt access point [closed]

I'm trying to disable/hide my SSID broadcast programatically in order to stop devices connecting to my access point (not for security reasons). I have tried renaming the SSID and setting it to nothing ...
0
votes
1answer
58 views

Elastix “asterisk -r” command not working “-bash: asterisk: command not found”

I'm having trouble administering the current version of Elastix from the command line on a CentOS 6.3 box. I believe the command I'm look for is asterisk -r however I cannot figure out how to access ...
0
votes
2answers
68 views

Connect two servers with RJ-45 cable and iptables (without switch!)

I have two servers and server_1 is connected to INTERNET port (of server farm) at eth0. No switch. They connected with cable from (server_1)eth1 -> (server_2)eth0 : ifconfig of (server_1): eth0 ...
3
votes
5answers
289 views

del *.txt removes also file.txt_backup

Imagine that we have directory c:\test with following files: first.txt second.doc third.txt fourth.txt_bak I want to remove only txt files, but leave doc and txtwhatever untouched. When I run ...
0
votes
0answers
88 views

ssh reverse tunnel port forwarding connection fails

Updated: diagram http://s22.postimg.org/b2jfgawup/diagram_ssh_tunnel_a1.png I am able to do a reverse port forwarding through the PUTTY GUI with settings similar to below. once I apply this setting, ...
0
votes
1answer
93 views

Replace wildcard certificate on multiple sites at once (using command line) on IIS 7.5

I have 3 websites: aaa.my-domain.com, bbb.my-domain.com and ccc.my-domain.com all using a single wildcard certificate *.my-domain.com on IIS 7.5 Windows Server 2008R2 64-bit. That certificate expires ...
2
votes
1answer
66 views

Cisco 7604 router runs out of memory when loading the IOS image, yet runs a different image with similar reqs

I am experiencing an unusual memory issue with a Cisco 7604 router, specifically the memory on the Supervisor Engine (SUP32-GE-3B) and how it pertains to IOS requirements. I was preparing the router ...
2
votes
1answer
98 views

Network Interface binding order on Windows 8.1

When I query the local interfaces on windows 8 in the command line, I could see the results listed below: C:\> netsh interface show interface Admin State State Type ...
0
votes
0answers
24 views

Odd behaviour with varnishlog and stream redirecting

I wrote a helper to debug varnish installation and have used it on both production and development server. The odd thing is, I encountered different behaviour even though the setup is nearly identical ...
1
vote
2answers
234 views

Windows Server 2012 Can't Delete Folder/Files

I've got a folder with two ISO files in it and I don't need them anymore, however I can't delete the folder! I am an administrator and also the owner of the files. When I try and delete using windows ...
0
votes
3answers
84 views

Tail a file from ssh and mirror to a local file

To tail a file over ssh, I can use ssh -t remotebox "tail -f /var/log/remote.log" However, it is possible to sync the tail with a local file? So a file automatically mirror the update of the tail ...
2
votes
1answer
80 views

Are the xen xe commands available on Oracle VM 3.2?

I recently discovered that Citrix has opensourced XenServer, and that XCP (which we have been using) is more or less now legacy and needless. While looking at rebuilding our systems on XenServer 6.2, ...
0
votes
2answers
109 views

How to run multiple commands with psexec?

I need to run a command to uninstall forefront on some of our workstations and am having a bit of trouble formatting the command. Here's what needs to happen (in multiple commands) xcopy ...
1
vote
1answer
418 views

Fork a process inside a bash shell script

I've a simple shell script like #!/bin/bash sh -c "sleep 60" & exec sleep 120 In using the pstree command, I found something like `-sleep(11681)---sleep(11682) The first sleep is due to the ...
0
votes
0answers
133 views

setting up dell compellent array from command line

So we have a few compellent storage arrays. I have little knowledge of these things but I am improving. so my basic question is I want to configure the server via cli and make some script which does ...
2
votes
2answers
222 views

Batch rename directories with regex via command line on Linux

I have a folder on the server that contains directories that are created daily and are named by date, like so: 07-06-14 08-06-14 09-06-14 etc. At some point I decided that a preferred naming would ...
1
vote
5answers
137 views

How to split the output into different files?

I have a input file like foo xxx yyy zzz foo xxx yyy zzz foo xxx yyy zzz foo xxx yyy zzz bar xxx yyy zzz bar xxx yyy zzz foo xxx yyy zzz .. How to split the input file by line, into foo.txt ...
0
votes
1answer
150 views

Turn Linux into Router (Cisco-like) [closed]

how you doing? I have two Sophos UTM 220 Appliance for study. They have 8 Gigabit Ethernet ports and the hardware is like a common PC (Intel Motherboard, Processor and DDR2 Memory). I would like to ...
1
vote
2answers
53 views

Rsync plugin to many local wordpress installs via script or cli

I am maintaining a large number of wordpress installs on a production server, and we are looking to deploy InfiniteWP for managing these installs. I am looking for a way to script the distribution of ...
0
votes
2answers
472 views

Launch firefox on remote server using SSH with a command line parameter

Is there a way to launch firefox on a remote server using SSH this way ? : ssh username@ip_address [command line] When I run: ssh username@ip_address -Y (or -X) firefox (I want to launch firefox ...
3
votes
2answers
286 views

How can I create a windows shutdown script from powershell/command-line?

I've read the TechNet pages that describe using computer/user startup/shutdown scripts, and that's great, but I'd like to create those scripts via the command-line (and not have to click around in ...
1
vote
2answers
120 views

How to split a file and compress directly?

I've a 100GB file and I want to split into 100 of 1GB file each (by line break) e.g. split --bytes=1024M /path/to/input /path/to/output For the 100 files generated, I want to apply gzip/zip to ...
3
votes
2answers
415 views

SCCM - Where to put the create user step

I've implemented SCCM on our server and am now running task sequences to migrate from Windows XP to Win7. But we also need to be able to add a new local admin, because disable the default ...
22
votes
8answers
4k views

How to hide a password passed as command line argument?

I'm running a software daemon that requires for certain actions to enter a passphrase to unlock some features which looks for example like that: $ darkcoind masternode start <mypassphrase> ...
-2
votes
1answer
131 views

How to install ganglia on vmware esxi 5.5 host? [closed]

I want to install ganglia monitoring tool on esxi host so that i can monitor vm's usage. Can anyone give me a installation guide/link which i can refer/follow to install it? PS: I am total newbie to ...
-3
votes
1answer
86 views

How to copy a file with its parent directories on Windows?

I want to do this on Windows command line: copy foo\bar\baz\myfile.txt c:\destination And end up with: (assuming c:\destination existed but was empty) c:\destination\foo\bar\baz\myfile.txt How ...
1
vote
1answer
56 views

Command line tool for fetching and analyzing SSL certificate

Following the heartbleed vulnerability in openSSL, all the SSH certificate on our servers were re-issued and re-installed. Since it is likely that we've missed something on a server (for example, ...
0
votes
1answer
45 views

Change VNC password without losing the session

I have a VNC session to my server(linux), but now i need to change their password, however, i cannot lose that session. If I use this command: vncpasswd [passwd-file] Does anyone know if I will ...
2
votes
1answer
93 views

Windows 2008 Server R2 Command Prompt/Power Shell Slow Scrolling

I'm having an issue with various Windows 2008 Server R2 machines scrolling very slowly using the command line or Power Shell. For instance, if I type "dir", I see my contents being displayed 1 line at ...
0
votes
0answers
40 views

Is there a simple command to delete multiple ip sla policies?

I have a Cisco 819 router and on it there are a lot of ip sla policies. when I run the sh runcommand I get the following; ip sla auto discovery ip sla 2 http get http://www.facebook.com cache ...
0
votes
2answers
73 views

How do I see if user connected to mysql over ssh tunnel?

I imagined command last, would also give me mysql over ssh tunnels list. But I was wrong. Is there a place where this tunnels are logged? Ubuntu server 12.04.
0
votes
1answer
146 views

Cannot add address object using CLI on Sonicwall NSA2400 (5.9 firmware)

Based on an example from "SonicOS 5.9 Enterprise Command Line Interface Reference Guide" I have tried to add an address object using command below (which is not changed compare to prior firmware): ...
1
vote
3answers
397 views

Generate CPU, memory, disk and network graphs from command-line [closed]

I would like to periodically (e.g. using cron) generate an image (e.g. png) containing graphs for CPU usage, memory usage, disk I/O load and network usage. I would like something not too ugly, so a ...
9
votes
2answers
1k views

linux command to prevent dos attack by using netstat and iptables

I want to DROP more than 200 requests per ip to prevent ddos attack. this is command that i used to detect requests count per ip : netstat -alpn | grep :80 | awk '{print $5}' |awk -F: '{print ...
1
vote
1answer
54 views

Google Analytics real-time data into a 'top' like CLI

Does anyone know of a project or set of scripts that attempts to bring Google Analytics data to the command line? What I dream about is a "top" like application that lets me monitor Google Analytics ...
1
vote
1answer
80 views

How to read CPU usage statistics shown in “top” screen?

I'm pretty confused about understanding of CPU usage in a linux server... Please see the screenshot below: WHAT does Cpu(s): 9.1%us mean ACTUALLY? and WHAT does 74.7 at the ruby/deployer row ...
4
votes
2answers
254 views

How do I remove (un-apply) a named filter from a Procurve switch port using the CLI?

EDIT: Edited my examples to reflect that I was indeed attempting this with the switch in "configure" mode. Still no joy. EDIT: I've done some more searching on this issue. I just can't seem to see it ...
0
votes
1answer
49 views

Batch file output issue

I am trying to get a batch file to output some data to a CSV file. The command I have works perfectly in the command line but not when I copy it to a batch file. In the batch file, it just hangs and ...