Sponsored Content
Operating Systems Linux (ASK) Question about linux network... Post 302562479 by hartz on Friday 7th of October 2011 04:15:47 AM
Old 10-07-2011
I assume you did not try it with actual x'es ?

last will show hostnames in stead of IP addresses if it knows the hostname. In this case the grep command will find nothing, but you can specify the -i option to the last command to force it to print the IP addresses even when it knows the hostnames.

Example:
Code:
last -i | grep 192

Note: The "last" command shows logins, not other types of connection. If you are looking for a log of connections to an SMB (Samba) share I am sure there is a log somewhere - I would need to google it but will rather leave the answer to someone who knows Samba better than me.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Network question

Hey, Just need a little help I'm not sure wat I should do. We have several little networks setup for testing different things. One of these networks we need to have running at full dulpex. Right now we run 2 hubs (to go off to 2 differnt parts) and they are half dulpex hubs. Is is... (1 Reply)
Discussion started by: merlin
1 Replies

2. Linux

Red-hat AS 2.1 network question

I have setup a AS 2.1 server with no X running or installed. I need to know how to configure the IP and such from command line and change it from DHCP. We used DHCP at first since we didn't know the IP we were going to use and now I need to change it. Any help would be great as Redhat's site just... (2 Replies)
Discussion started by: Acleoma
2 Replies

3. Solaris

Solaris Network question

I have a machine that has developed a strange network problem. Anytime it sends an FTP file somewherwe, no problem. When it is the target machine, extremely slow. I checked the /var/adm/messages file and found a few of these: SUNW,hme0 : No response from Ethernet network : Link down -- cable... (2 Replies)
Discussion started by: hshapiro
2 Replies

4. UNIX for Dummies Questions & Answers

Network noobie question

This is my first attempt in installing a netbsd ever. I'm trying to get myself familiar with some commands and how things work in unix and so far i never knew its this fun. Anyway, unix is our elective here in school and school is gonna start 2 weeks. I'm just trying to get a headstart on this :D... (2 Replies)
Discussion started by: 3rr0r_3rr0r
2 Replies

5. UNIX for Dummies Questions & Answers

network set up question

1) how do i know my NIC speed if its 10//100??? 2)how do i setup by NIC to full duplex 3) any help on setting up etherchannel for NIC failover (1 Reply)
Discussion started by: karthikosu
1 Replies

6. Solaris

Solaris 10 Network Question

I am new to Solaris and have been searching around for this answer and I think I figured it out but I wanted to run it by you folks. I was trying to figure out if the network on this Solaris 10 machine was set up for 100 Full Duplex. I think from this output that it is 100 full duplex, am I... (2 Replies)
Discussion started by: scotbuff
2 Replies

7. UNIX for Dummies Questions & Answers

multi-network question

Hi, I have a linux machine connected to 2 networks, with devices eth0 and eth1. When I give the command host whatever, how do I now which network is searched for the DNS's ? Is there a default ethernet device for network related commands ? How do I change it ? :confused: (2 Replies)
Discussion started by: mik
2 Replies

8. IP Networking

network question

Hi here is my question; any help would be appreciated The Linux system pokey has two Ethernet cards. The first Ethernet card is connected to a companywide TCP/IP network covering the addresses 87.65.43.xx, where pokey's address is 87.65.43.21. The second Ethernet interface is connected to a... (2 Replies)
Discussion started by: scofiled83
2 Replies

9. IP Networking

Network question

Folks; I have 2 SUSE servers similar in all configuration & both on the same network (192.168.151.10 & 192.168.151.11) with the same default gateway of 192.168.151.1 and the same netmask of 255.255.255.0 and the same firewall configuration the first one works fine and i can ssh to it & i can... (3 Replies)
Discussion started by: Katkota
3 Replies

10. UNIX for Dummies Questions & Answers

Redhat - network question

Hi, I am on Redhat 5. on the /etc/sysconfig/network file I don't see GATEWAY as one line. I also checked /etc/sysconfig/network-scripts/ifcfg-eth0. I don't see GATEWAY. But on the server. But when I do netstat -rn. I see many address. Is there some other settings ? ... (2 Replies)
Discussion started by: samnyc
2 Replies
Linux::Distribution::Packages(3pm)			User Contributed Perl Documentation			Linux::Distribution::Packages(3pm)

NAME
Linux::Distribution::Packages - list all packages on various Linux distributions SYNOPSIS
use Linux::Distribution::Packages qw(distribution_packages distribution_write); $linux = new Linux::Distribution::Packages({'format' => 'csv', 'output_file' => 'packages.csv'}); $linux->distribution_write(); # Or you can (re)set the options when you write. $linux->distribution_write({'format' => 'xml', 'output_file' => 'packages.xml'}); # If you want to reload the package data $linux->distribution_packages(); DESCRIPTION
This is a simple module that uses Linux::Distribution to guess the linux distribution and then uses the correct commands to list all the packages on the system and then output them in one of three formats: native, csv, and xml. Distributions currently working: debian, ubuntu, fedora, redhat, suse, gentoo, slackware, redflag. The module inherits from Linux::Distribution, so can also use its calls. EXPORT None by default. TODO
* Add the capability to correctly get packages for all recognized distributions. * Seperate out parsing from writing. Parse data to hash and give access to hash. Then write the formatted data from the hash. AUTHORS
Judith Lebzelter, <judith@osdl.org> Alberto Re, <alberto@accidia.net> COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available. perl v5.10.1 2006-04-19 Linux::Distribution::Packages(3pm)
All times are GMT -4. The time now is 03:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy